package com.alibaba.algo.cooperation.common;

import lombok.Data;

import java.util.List;

/**
 * @author: niechanggang
 * @date:2021/3/23 10:37
 * @description:
 */
@Data
public class PagerEntity<T> {

    private long total;
    private int totalPages;
    private int pageIndex;
    private int pageSize;
    private List<T> dataList;

    public  PagerEntity(){

    }

    public PagerEntity(long total, int totalPages, int pageSize, int pageIndex, List<T> dataList) {
        this.total = total;
        this.totalPages = totalPages;
        this.pageSize = pageSize;
        this.pageIndex = pageIndex;
        this.dataList = dataList;
    }




}
